package com.lp.biz.train.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import static com.lp.common.constant.CommonConstant.DATE_MIN;
import static com.lp.common.constant.CommonConstant.TIMEZONE;

/**
 * @program: backend
 * @description:
 * @author: Ke.Song
 * @since: 2024-05-05 21:36:03
 */
@Data
public class TrainDetail {

    private Integer id;

    private String typeCode;

    private String title;

    private String description;

    private String imageT;

    private String imageV;

    private BigDecimal originalPrice;

    private BigDecimal actualPrice;

    private Integer periodsNum;

    private String profile;

    private Integer isDisplay;

    @JsonFormat(timezone = TIMEZONE, pattern = DATE_MIN)
    private LocalDateTime createAt;

    private Integer isCharge;
}
